<div class="detail">
  <!-- 基本信息 -->
  <div class="clearfix credit-detail font-s">
    <h4 class="font-s font-green">基本信息</h4>
    <div class="fl font-s">
      <p>
        <span>公司名称：</span>
        <span ng-bind="info.company_name || '未填写'"></span>
      </p>
      <p>
        <span>公司地址：</span>
        <span ng-bind="info.company_addr || '未填写'"></span>
      </p>
      <p>
        <span>公司年收入：</span>
        <span ng-bind="info.company_income + '元' || '未填写'"></span>
      </p>
      <p>
        <span>核心企业：</span>
        <span>{{$CONST.ORDER_ORIGIN[info.core_company_ids].label || '未填写'}}</span>
      </p>
      <p>
        <span>联系人电话：</span>
        <span ng-bind="info.connector_num || '未填写'"></span>
      </p>
    </div>
    <div class="fl font-s secd-li">
      <p>
        <span>公司注册时间：</span>
        <span ng-bind="info.company_regist_time.substr(0,10) || '未填写'"></span>
      </p>
      <p>
        <span>公司注册资金：</span>
        <span ng-bind="info.company_regist_amount+ '元' || '未填写'"></span>
      </p>
      <p>
        <span>公司邮箱：</span>
        <span ng-bind="info.company_email || '未填写'"></span>
      </p>
      <p>
        <span>联系人：</span>
        <span ng-bind="info.connector || '未填写'"></span>
      </p>
    </div>
  </div>
  <!--分割线-->
  <div class="line"></div>
  <!-- 证件信息 -->
  <div class="clearfix bgc-white credit-detail font-s">
    <h4 class="font-s font-green">证件信息</h4>
    <div class="fl">
      <!--<p>-->
        <!--<span>社会信用号：</span>-->
        <!--<span ng-bind="info.company_social_num || '未填写'"></span>-->
      <!--</p>-->
      <!--<p>-->
        <!--<span>组织机构代码：</span>-->
        <!--<span ng-bind="info.company_organization_num || '未填写'"></span>-->
      <!--</p>-->
      <p>
        <span>营业执照号：</span>
        <span ng-bind="info.company_business_license || '未填写'"></span>
      </p>
      <p>
        <span>公司法人：</span>
        <span ng-bind="info.company_corporation || '未填写'"></span>
      </p>
      <p>
        <span>法人身份证号：</span>
        <span ng-bind="info.company_corporation_idnum || '未填写'"></span>
      </p>
      <p>
        <span>机构信用代码证：</span>
        <span ng-bind="info.co_credit_no || '未填写'"></span>
      </p>
    </div>
    <div class="fr id-card-content">
      <div class="no-bg">
        <span>营业执照：</span>
        <div class="img-view">
          <img ng-src="{{info.filePath + info.company_blimg}}">
        </div>
      </div>
      <div class="no-bg">
        <span>银行开户许可证：</span>
        <div class="img-view">
          <img ng-src="{{info.filePath + info.bank_account_permit_certificate}}">
        </div>
      </div>
      <div class="no-bg big">
        <span>法人身份证：</span>
        <div class="img-view">
          <img ng-src="{{info.filePath + info.company_corporation_imgposi}}">
        </div>
        <div class="img-view">
          <img ng-src="{{info.filePath + info.company_corporation_imgback}}">
        </div>
      </div>
      <div class="no-bg">
        <span>机构信用代码证：</span>
        <div class="img-view">
          <img ng-src="{{info.filePath + info.co_credit_pic}}">
        </div>
      </div>
    </div>
  </div>
  <!--分割线-->
  <div class="line"></div>
  <!-- 文件信息 -->
  <div class="clearfix bgc-white credit-detail font-s">
    <h4 class="font-s font-green">文件信息</h4>
    <div class="font-s file-info">
      <div>
        <span>公司章程：</span>
        <button ng-click="downloadFile(info.filePath, info.articles_company)">下载文件</button>
      </div>
      <div>
        <span>公司前两年及本年各期资产负债表：</span>
        <button ng-click="downloadFile(info.filePath, info.last_year_balance_sheet)">下载文件</button>
      </div>
      <div>
        <span>股东决议：</span>
        <button ng-click="downloadFile(info.filePath, info.shareholder_resolution)">下载文件</button>
      </div>

      <div>
        <span>股东身份信息：</span>
        <button ng-click="downloadFile(info.filePath, info.shareholder_identity_information)">下载文件</button>
      </div>
      <div>
        <span>公司前两年及本年各期利润表：</span>
        <button ng-click="downloadFile(info.filePath, info.profit_statement)">下载文件</button>
      </div>
    </div>
  </div>
  <!--分割线-->
  <div class="line"></div>
  <!-- 开票信息 -->
  <div class="clearfix bgc-white credit-detail font-s">
    <h4 class="font-s font-green">开票信息</h4>
    <div>
      <p>
        <span>纳税人识别号：</span>
        <span ng-bind="info.taxpayer_identification_number || '未填写'"></span>
      </p>
      <p>
        <span>开户行：</span>
        <span ng-bind="info.bank || '未填写'"></span>
      </p>
      <p>
        <span>开户行账号：</span>
        <span ng-bind="info.bank_num || '未填写'"></span>
      </p>
    </div>
  </div>
  <!--分割线-->
  <div class="line"></div>
  <!-- 查看订单 -->
  <div class="clearfix bgc-white credit-detail font-s">
    <h4 class="font-s font-green">查看订单</h4>
    <div>
      <button class="bgc-white font-yellow look-for-order" ng-click="toOrderDetail()">立即查看</button>
    </div>
  </div>
  <!--分割线-->
  <div class="line"></div>
  <!-- 审核 -->
  <div class="clearfix bgc-white credit-detail font-s">
    <h4 class="font-s font-green">审核</h4>
    <div class="credit-detail-verify" ng-if="isAudit == 1">
      <!--选择审核意见-->
      <p class="input">
        <span>请选择审核意见：</span>
        <select ng-model="$parent.loanStatus">
          <option value="2">审核通过</option>
          <option value="3">审核不通过</option>
        </select>
      </p>
      <!--当选择了审核不通过的时候，展示此项-->
      <p class="input" ng-show="$parent.loanStatus == 2">
        <span>请填写建议授信额度：</span>
        <input type="text" ng-model="$parent.loanAmount">
      </p>
      <!--当选择了审核不通过的时候，展示此项-->
      <p class="input" ng-show="$parent.loanStatus == 3">
        <span>请填写审核不通过原因：</span>
        <input type="text" ng-model="$parent.loanDesc">
      </p>
      <button class="btn-yellow font-white btn-detail-submit" ng-click="submitAwardResult()">提交</button>
    </div>
    <!--详情-->
    <div class="credit-detail-verify" ng-if="isAudit != 1">
      <p>审核意见：{{$status.name(info.clerk_status, info.employee_status)}}</p>
      <!--审核通过展示额度-->
      <p ng-if="$status.auditSuccess(info)">建议授信额度：{{info.employee_limit || info.clerk_limit}}元</p>
      <!--审核失败，展示原因-->
      <p ng-if="$status.auditFail(info)">原因：{{info.employee_desc || info.clerk_desc || '未填写'}}</p>
    </div>
  </div>
  <!--分割线-->
  <div class="line"></div>
  <!-- 操作日志 -->
  <div class="clearfix bgc-white credit-detail font-s">
    <h4 class="font-s font-green">操作日志</h4>
    <table class="list-table text-c table table-striped">
      <thead class="bg-green font-white">
      <tr>
        <th>操作时间</th>
        <th>操作人</th>
        <th>授信状态</th>
        <th>额度</th>
        <th>审核说明</th>
      </tr>
      </thead>
      <tbody>
      <tr ng-repeat="item in records">
        <td ng-bind="item.time"></td>
        <td >{{item.name}}({{$status.getRoleName(item.role)}})</td>
        <td ng-bind="$status.getStatus(item.role, item.STATUS)"></td>
        <td ng-bind="item.R_LIMIT || '未填写'"></td>
        <td ng-bind="item.R_DESC || '未填写'"></td>
      </tr>
      <tr ng-show="!records || records.length == 0"><td colspan="10">暂无操作日志记录</td></tr>
      </tbody>
    </table>
  </div>
</div>
